package com.qf.iot.web.controller;

import com.qf.iot.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashSet;

/**
 *
 * @author 千锋健哥
 */
@RestController
@RequestMapping("/test")
public class ParamsTestController {

    /**
     *
     * @param user
     * @return
     */
    @RequestMapping("/user")
    public User testParam(@RequestBody  User user){

        System.out.println("JSON:"+user);
        return user;
    }
}
